﻿<?php 
    class Article
	{
		public $_article_id;
		public $_article_title;
		public $_article_description;
		public $_article_detail;
		public $_article_image;
		public $_article_cat;
		public $_article_author_id;
		public $_article_author_name;
		public $_article_create_date;
		public $_article_update_date;
		public $_article_feature;
		public $_article_status;
		public $_article_position;
		public $_article_topic_id;
		public $_article_view;
		public $_article_alias;
		public $_article_map;
		public $_article_supplier_id;
		public $_article_meta_title;
		public $_article_meta_description;
		public $_article_meta_keyword;
		
		public function exchangeArray($data)
		{
			$this->_article_id=isset($data['article_id']) ? $data['article_id'] : null;
			$this->_article_title=isset($data['article_title']) ? $data['article_title'] : null;
			$this->_article_description=isset($data['article_description']) ? $data['article_description'] : null;
			$this->_article_detail=isset($data['article_detail']) ? $data['article_detail'] : null;
			$this->_article_image=isset($data['article_image']) ? $data['article_image'] : null;
			$this->_article_cat=isset($data['article_cat']) ? $data['article_cat'] : null;
			$this->_article_author_id=isset($data['article_author_id']) ? $data['article_author_id'] : null;
			$this->_article_author_name=isset($data['article_author_name']) ? $data['article_author_name'] : null;
			$this->_article_create_date=isset($data['article_create_date']) ? $data['article_create_date'] : null;
			$this->_article_update_date=isset($data['article_update_date']) ? $data['article_update_date'] : null;
			$this->_article_feature=isset($data['article_feature']) ? $data['article_feature'] : null;
			$this->_article_status=isset($data['article_status']) ? $data['article_status'] : null;
			$this->_article_position=isset($data['article_position']) ? $data['article_position'] : null;
			$this->_article_topic_id=isset($data['article_topic_id']) ? $data['article_topic_id'] : null;
			$this->_article_view=isset($data['article_view']) ? $data['article_view'] : null;
			$this->_article_alias=isset($data['article_alias']) ? $data['article_alias'] : null;
			$this->_article_map=isset($data['article_map']) ? $data['article_map'] : null;
			$this->_article_meta_title=isset($data['article_meta_title']) ? $data['article_meta_title'] : null;
			$this->_article_meta_description=isset($data['article_meta_description']) ? $data['article_meta_description'] : null;
			$this->_article_meta_keyword=isset($data['article_meta_keyword']) ? $data['article_meta_keyword'] : null;
		}
		public function getArrayCopy()
		{
			return get_object_vars($this);
		}
	}
?>